package com.test.resumeanalysis.ui.talent

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
import com.test.resumeanalysis.R
import com.test.resumeanalysis.common.BaseVBFragment
import com.test.resumeanalysis.databinding.FragmentTalentBinding
import com.test.resumeanalysis.ui.home.post_info.TalentAdapter


class TalentFragment :BaseVBFragment<FragmentTalentBinding>(FragmentTalentBinding::inflate){

    lateinit var adapter:TalentAdapter
    override fun initView() {
        super.initView()

        binding.btnTalentInfo.setOnClickListener{
            findNavController().navigate(R.id.talentInfoFragment)
        }

        adapter = TalentAdapter()
        binding.rvTalent.layoutManager = LinearLayoutManager(activity)

        val list = ArrayList<String>()
        list.let {
            it.add("a")
            it.add("b")
            it.add("c")
            it.add("d")
            it.add("b")
            it.add("c")
            it.add("c")
        }
        adapter.data=list
        binding.rvTalent.adapter = adapter

    }
}